package com.kaka.dao;

import com.kaka.bean.Teacher;

import java.util.List;

public interface TeacherDao {

    //根据用户名和密码查询用户
    List<Teacher> selectByUsernameAndPassword(String username, String password);

    //查询所有教师信息
    List<Teacher> selectAll();

    //根据tid修改密码
    int updatePasswordByTid(int tid, String newPassword);

    //新增教师用户
    int insertNewTeacher(Teacher teacher);

    //根据教师id删除教师
    int deleteByTid(int tid);
}

